package cc.mrbird.febs.accounting.entity;

import java.util.Date;
import java.util.List;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 标准明细科目表 Entity
 *
 * @author baoyinlei
 * @date 2021-11-29 16:39:25
 */
@Data
@TableName("bk_standard_sub")
public class StandardSub {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("unit")
    private String unit;

    @TableField("level")
    private Integer levle;

    @TableField("code")
    private String code;

    @TableField("standard_main")
    private String standardMain;

    @TableField("type")
    private Byte type;

    @TableField("`order`")
    private Integer order;

    @TableField("calculate_rule")
    private String calculateRule;

    @TableField("for_statistics")
    private Integer forStatistics;

    @TableField("for_detail_statistics")
    private Integer forDetailStatistics;

    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField("create_time")
    private Date createTime;

    @TableField("modify_time")
    private Date modifyTime;

    @TableField("create_by")
    private String createBy;

    @TableField("modify_by")
    private String modifyBy;

    @TableField(exist = false)
    private List<DetailCost> detailCosts;

    @TableField("sub_type")
    private Integer subType;
}
